﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Frame.master" AutoEventWireup="true" CodeFile="customerAction.aspx.cs" Inherits="customerAction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleHolder" Runat="Server">
    <asp:Label runat="server" ID="lblTitle" Text="Thêm mới khách hàng"></asp:Label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" Runat="Server">
    <asp:Label ID="lblMsg" runat="server" ForeColor="#FF0000"></asp:Label>
    <table width="930" border="0" align="center" cellpadding="3" cellspacing="1" class="margin_l100">
        <tr>
            <td width="110" align="left" valign="top">
                Mã khách hàng</td>
            <td align="left" valign="top">
                                    <asp:TextBox ID="txtCustomerCode" runat="server"  
                                      MaxLength="10" Width="250px"></asp:TextBox>
                                &nbsp;<asp:RequiredFieldValidator ID="rqPlat" runat="server" ControlToValidate="txtCustomerCode"
                                        CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:Label ID="lblErrorCode" runat="server" 
                    CssClass="errorMsg" Text="Mã này đã tồn tại !"
                                        Visible="False" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Tên khách hàng</td>
            <td align="left" valign="top">
                <table cellpadding="0" cellspacing="0" border="0">
                    </table>
                <asp:TextBox ID="txtName" runat="server" 
                                MaxLength="100" Width="250px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="rqFrom0" runat="server" ControlToValidate="txtName"
                                        CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                                        Display="Dynamic"></asp:RequiredFieldValidator>
                  </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Điện thoại</td>
            <td align="left" valign="top">              
           <asp:TextBox ID="txtPhone" runat="server" Width="250px" MaxLength="13" ></asp:TextBox>
            &nbsp;</td>
        </tr>
        <tr>
            <td align="left" valign="top">
                Địa chỉ</td>
            <td align="left" valign="top">
              
                        <asp:TextBox ID="txtAddress" runat="server" MaxLength="200" 
                    TextMode="MultiLine" Rows="4" Width="250px"></asp:TextBox>
                   
            </td>
        </tr>
      
        <tr>
            <td align="left" valign="top">
                &nbsp;
            </td>
            <td align="left" valign="top">
                <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/images/save.gif" OnClick="btnSave_Click" />
                <asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/images/xoa.gif" 
                    OnClick="btnReset_Click" CausesValidation="False" />                
                <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/images/huy.gif" 
                    OnClick="btnCancel_Click" CausesValidation="False" />
                
                &nbsp;</td>
        </tr>
    </table>
    <asp:HiddenField ID="hdnId" runat="server" />
    <asp:HiddenField ID="hdnCode" runat="server" />
</asp:Content>

